package com.pkx.guide.info.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pkx.guide.info.entity.TInfoGuideStatusHistory;
import com.pkx.guide.info.mapper.TInfoGuideStatusHistoryMapper;
import com.pkx.guide.info.service.TInfoGuideStatusHistoryService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 诱导屏状态历史记录 服务实现类
 *
 * @Author : YangLe
 * @create 2025/10/29 11:01
 */
@Service
public class TInfoGuideStatusHistoryServiceImpl extends ServiceImpl<TInfoGuideStatusHistoryMapper, TInfoGuideStatusHistory> implements TInfoGuideStatusHistoryService {
   @Resource
   private TInfoGuideStatusHistoryMapper tInfoGuideStatusHistoryMapper;
    /**
     * 分页列表
     *
     * @param tInfoGuideStatusHistory
     * @return
     */
    @Override
    public IPage<TInfoGuideStatusHistory> pageList(Page page, TInfoGuideStatusHistory tInfoGuideStatusHistory) {
        LambdaQueryWrapper<TInfoGuideStatusHistory> lambdaQueryWrapper = new QueryWrapper<TInfoGuideStatusHistory>().lambda();
        return page(page, lambdaQueryWrapper);
    }

    /**
     * 列表查询
     *
     * @param tInfoGuideStatusHistory
     * @return
     */
    @Override
    public List<TInfoGuideStatusHistory> listByEntity(TInfoGuideStatusHistory tInfoGuideStatusHistory) {
        LambdaQueryWrapper<TInfoGuideStatusHistory> lambdaQueryWrapper = new QueryWrapper<TInfoGuideStatusHistory>().lambda();
        return list(lambdaQueryWrapper);
    }

    /**
     * 详情
     *
     * @param id
     * @return
     */
    @Override
    public TInfoGuideStatusHistory selectById(Integer id) {
        return getById(id);
    }

    /**
     * 保存
     *
     * @param tInfoGuideStatusHistory
     * @return
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public Boolean saveTInfoGuideStatus(TInfoGuideStatusHistory tInfoGuideStatusHistory) {
        return save(tInfoGuideStatusHistory);
    }

    @Override
    public Boolean modify(TInfoGuideStatusHistory tInfoGuideStatusHistory) {
        return modify(tInfoGuideStatusHistory);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return deleteById(id);
    }


}
